package cn.est.controller;

import cn.est.resp.Result;
import cn.est.resp.ResultUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ApiModel("登录")
public class LoginController {
    @RequestMapping("login")
    @ApiOperation(value = "登录",
            httpMethod = "GET",
            produces = "Result",
            response = Result.class,
            protocols = "http",
    notes = "进入登录的方法"
            )
    public Result login(@ApiParam(required = true,name = "name",value = "用户名")String name
            ,@ApiParam(required = true,name = "pwd",value = "密码")String pwd){
        return ResultUtils.returnSuccess();
    }
}

